using System;
using System.Collections.Generic;
using System.Text;
using System.Data;
using System.Collections;
namespace Quanly_dethi.Class
{
   class csB_Admin
    {
        private csC_Admin x;

        public csC_Admin X
        {
            get { return x; }
            set { x = value; }
        }
        public csB_Admin()
        {
            x = new csC_Admin();
        }
        public csB_Admin(string servername, string user, string pass, string dbname)
        {
            x = new csC_Admin(servername, user, pass, dbname);
        }
        public bool Select(csE_Admin c)
        {
            return this.x.select(c);
        }
        public DataTable select_all()
        {
            return x.selectall();
        }
        public Boolean xuly(string ten)
        {
           try
           {
               this.x.xuly(ten);
               return true;
           }
           catch 
           {
               return false;
           }
           
        }
        public void Insert(csE_Admin x)
        {
            this.x.insert(x);
        }
        public void Update(csE_Admin x)
        {
            this.x.Update(x);
        }
        public Boolean xuly_phuchoi(string duongdan)
        {
           
            try
            {
                this.x.xuly_phuchoi(duongdan);
                return true;

            }
            catch 
            {
                return false;
            }
        }
        
    }
}
